1 @
if "%_echo%"=="" echo off
5 REM Copyright (c) 2006 Microsoft Corporation. All rights reserved.
7 REM The use and distribution terms for this software are contained in the file
8 REM named license.txt, which can be found in the root of this distribution.
9 REM By using this software in any fashion, you are agreeing to be bound by the
10 REM terms of this license.
12 REM You must not remove this notice, or any other, from this software.
17 if "%FEATURE_PAL%"=="1" goto UseMe
18 if not exist %NTMAKEENV%\binplace.exe
goto UseMe
19 call %NTMAKEENV%\binplace.exe
%*
23 REM Calculate the directory and full qualifed file name from the input
26 REM Look for -R to find destination directory
28 if "%1"=="-R" goto FoundDestination
29 if "%1"=="" goto InvalidCommand
36 REM Not look for the last parameter
38 if "%2"=="" goto FoundLast
43 set QualifiedFileName
=%1
45 REM Calculate the Path for the sourcefile to copy
46 call :ComputeFilePath %QualifiedFileName%
47 set SourcePath
=%RESULT%
49 REM Calculate the Source File (without extension)
50 call :ComputeFileName %QualifiedFileName%
51 set SourceFile
=%RESULT%
53 REM Calculate the File Extension
54 call :ComputeExtension %QualifiedFileName%
55 set Extension
=%RESULT%
58 echo Copying
%QualifiedFileName% to
%DestinationDir%
59 if not exist %DestinationDir% md %DestinationDir%
60 copy %QualifiedFileName% %DestinationDir%
61 if exist %QualifiedFileName%.manifest
copy %QualifiedFileName%.manifest
%DestinationDir%
63 REM If the <file>.pdb exist, copy it over as well
64 if not exist %SourcePath%%SourceFile%.pdb
goto PDBCopyDone
65 if /i
"%Extension%"==".dll" set SymbolDestination
=%DestinationDir%\Symbols\dll
66 if /i
"%Extension%"==".exe" set SymbolDestination
=%DestinationDir%\Symbols\Exe
68 if "%SymbolDestination%"=="" goto PDBCopyDone
69 if not exist %SymbolDestination% md %SymbolDestination%
70 echo Copying
%SourcePath%%SourceFile%.pdb to
%SymbolDestination%
71 copy %SourcePath%%SourceFile%.pdb
%SymbolDestination%
77 REM Various useful expansion codes
79 REM ------------------------------------------
80 REM Expand a string to a full path
81 REM ------------------------------------------
86 REM ------------------------------------------
87 REM Compute the Path for the given input
88 REM ------------------------------------------
91 Call :FullPath %RESULT%
94 REM ------------------------------------------
95 REM Compute the filename for the given input
96 REM ------------------------------------------
101 REM ------------------------------------------
102 REM Compute the Path for the given input
103 REM ------------------------------------------
108 REM ------------------------------------------
110 REM ------------------------------------------